package com.ruoyi.dataMain.domain.bo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 消耗原始业务对象 data_consumption_original
 *
 * @author linziheng
 * @date 2024-04-17
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class DataConsumptionOriginalBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 日期
     */
    @NotNull(message = "日期不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date dataTime;

    /**
     * 帐户ID
     */
    @NotBlank(message = "帐户ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String accountId;

    /**
     * 帐户名称
     */
    @NotBlank(message = "帐户名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String accountName;

    /**
     * 总消耗
     */
    @NotNull(message = "总消耗不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal totalConsumption;

    /**
     * 非赠款消耗
     */
    @NotNull(message = "非赠款消耗不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal noConsumption;

    /**
     * 赠款消耗
     */
    @NotNull(message = "赠款消耗不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal consumption;

    /**
     * 文件路径
     */
    @NotBlank(message = "文件路径不能为空", groups = { AddGroup.class, EditGroup.class })
    private String path;
    /**
     * 批次
     */
    private String bitch;
    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;

    /*
     * 腾讯非赠款消耗 计算基础属性
     */
    private BigDecimal xjconsumption;
    private BigDecimal xyconsumption;
    private BigDecimal xnconsumption;


    private String companyName;
    private String signatory;
    private String supplierName;
    private String customName;
    private String businessUnitName;
    private String saleUser;
}
